package entity;

public enum Direction
{
	NORTH(0, -1), SOUTH(0, 1), EAST(1, 0), WEST(-1, 0);

	protected int _x;
	protected int _y;

	private Direction(int pX, int pY)
	{
		_x = pX;
		_y = pY;
	}

	public void changePosition( Position pPosition )
	{
		pPosition.setX( pPosition.getX() + _x );
		pPosition.setY( pPosition.getY() + _y );
	}
}
